{extends file="index.tpl"} 
{block name="page-content"}

	<div class="row-fluid">
		<div class="span12">
			<div class="block">
				<div class="head">
					<h2>Thêm Game Link</h2>
					<ul class="buttons">
						<li>
							<a href="#" onClick="source('form_validation'); return false;">
								<div class="icon"><span class="ico-info"></span></div>
							</a>
						</li>
					</ul>
				</div>
				<form id="validate" method="POST" action="{$WEB_BASE_URL}/index.php?controller=gameLink&action=add">
					<div class="data-fluid">
						<div class="row-form">
							<div class="span2">Game Category Name</div>
							<div class="span10">
								<select name="game_category_id" class="select" style="width: 100%;">
									<option value="0">-- Chọn Game Category Name --</option>
								{foreach from=$gameCategoryArr item=gameCategory}
									<option value="{$gameCategory.id}">{$gameCategory.name}</option>
								{/foreach}
								</select>
							</div>
						</div>
						<div class="row-form">
							<div class="span2">Type</div>
							<div class="span10">
								<select name="type" class="select" style="width: 100%;">
									<option value="JAVA">JAVA</option>
									<option value="ANDROID">ANDROID</option>
									<option value="IOS">IOS</option>
									<option value="WEB_GAME">WEB_GAME</option>
									<option value="PC Windows">PC Windows</option>
									<option value="TỰ ĐỘNG NHẬN DẠNG THIẾT BỊ">TỰ ĐỘNG NHẬN DẠNG THIẾT BỊ</option>
									<option value="QR CODE">QR CODE</option>
								</select>
							</div>
						</div>
						<div class="row-form">
							<div class="span2">File Type</div>
							<div class="span10">
								<select name="file_type" class="select" style="width: 100%;">
									<option value="JAR">JAR</option>
									<option value="JAD">JAD</option>
									<option value="APK">APK</option>
									<option value="IPA">IPA</option>
									<option value="WEB">WEB</option>
									<option value="TỰ ĐỘNG">TỰ ĐỘNG</option>
									<option value="CÀI TỰ ĐỘNG">CÀI TỰ ĐỘNG</option>
									<option value="ZIP">ZIP</option>
									<option value="IMG">IMG</option>
								</select>
							</div>
						</div>
						<div class="row-form">
							<div class="span2">Device</div>
							<div class="span10">
								<select name="device" class="select" style="width: 100%;">
									<option value="ALL">All</option>
									<option value="ONE">ONE</option>
								</select>
							</div>
						</div>
						<div class="row-form">
							<div class="span2">Device Name</div>
							<div class="span10">
								<select name="device_id" class="select" style="width: 100%;">
										<option value="0">-- Chọn Device Name --</option>
									{foreach from=$deviceArr item=device}
										<option value="{$device.id}">{$device.device_name}</option>
									{/foreach}
								</select>
							</div>
						</div>
						<div class="row-form">
							<div class="span2">Link</div>
							<div class="span10">
								<input type="text" name="link"/> 
							</div>
						</div>
						<div class="toolbar bottom tar">
							<div class="btn-group">
								<button class="btn btn-info" type="button" onClick="$('#validate').validationEngine('hide');">Hide prompts</button>
                                <button class="btn" type="submit">Thêm Game Link</button>
                            </div>
                       	</div>
					</div>
					
				</form>
			</div>
		</div>
	
	</div>

{/block}

